﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ViewScore.aspx.cs" Inherits="_Default" MasterPageFile="~/Student/Student.master" Title = "Home Page"%>

<%@ Register assembly="DevExpress.Web.v11.2, Version=11.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxNewsControl" tagprefix="dx" %>

<%@ Register assembly="DevExpress.Web.v11.2, Version=11.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxRoundPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.2, Version=11.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent" >
    <p>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:Institte_of_Fine_ArtsConnectionString %>" 
        
            
            
            SelectCommand="SELECT [CompetitionID], [Competition_Name], [Start_Date], [Competition_Detail], [End_Date] FROM [Competition] WHERE ([End_Date] &lt; @End_Date) ORDER BY [End_Date] DESC">
            <SelectParameters>
                <asp:SessionParameter DefaultValue="01/16/2013" Name="End_Date" 
                    SessionField="Today" />
            </SelectParameters>
    </asp:SqlDataSource>

    <dx:ASPxRoundPanel ID="ASPxRoundPanel2" runat="server" 
        HeaderText="Competitons End" HorizontalAlign="Center" Width="100%" 
        Font-Names="Algerian" Font-Size="Large" ForeColor="Black">
        <HeaderStyle Font-Bold="True" Font-Italic="False" ForeColor="Black" />
        <PanelCollection>
            <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                <dx:ASPxNewsControl ID="ASPxNewsControl2" runat="server" 
        CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" 
        DataSourceID="SqlDataSource1" DateField="Start_Date" 
        HeaderTextField="Competition_Name" NameField="CompetitionID" 
        PagerAlign="Justify" PagerPanelSpacing="1px" 
        SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css" 
        TextField="Competition_Detail" Width="100%" NavigateUrlField="CompetitionID" 
                    NavigateUrlFormatString="~/Student/ViewScoreDetails.aspx?id={0}">
                    <Items>
                        <dx:NewsItem HeaderText="Ao thu" Name="1" 
                Text="Ao thu lạnh lẽo, nước trong veo" Date="2013-01-07" NavigateUrl="1">
                        </dx:NewsItem>
                        <dx:NewsItem HeaderText="Đầm sen" Name="2" 
                Text="Trong đầm gì đẹp bằng sen" Date="2013-01-07" NavigateUrl="2">
                        </dx:NewsItem>
                        <dx:NewsItem HeaderText="Người hàng xóm" Name="3" 
                Text="Nhà nàng ở cạnh nhà tôi.." Date="2013-01-07" NavigateUrl="3">
                        </dx:NewsItem>
                    </Items>
                    <ItemSettings TailPosition="NewLine" 
                        MaxLength="100" TailText="View Score" ShowHeaderAsLink="True">
                    </ItemSettings>
                    <BackToTopImage>
                        <SpriteProperties CssClass="dxWeb_ncBackToTop_DevEx" />
                    </BackToTopImage>
                    <BackToTopStyle HorizontalAlign="Right" ImageSpacing="3px">
                    </BackToTopStyle>
                    <ItemDateStyle Spacing="0px">
                    </ItemDateStyle>
                    <ItemContentStyle LineHeight="14px">
                    </ItemContentStyle>
                    <ItemHeaderStyle Font-Bold="True" Font-Names="Arial" ForeColor="#FF6600" 
                        Font-Size="Large">
                    </ItemHeaderStyle>
                    <ItemTailStyle Font-Italic="True">
                    </ItemTailStyle>
                    <ItemLeftPanelStyle Spacing="37px">
                        <Paddings PaddingTop="3px" />
                    </ItemLeftPanelStyle>
                    <PagerSettings ShowDefaultImages="True">
                        <AllButton Text="">
                        </AllButton>
                        <FirstPageButton Text="">
                        </FirstPageButton>
                        <LastPageButton Text="">
                        </LastPageButton>
                        <NextPageButton Text="">
                        </NextPageButton>
                        <PrevPageButton Text="">
                        </PrevPageButton>
                        <Summary Position="Inside" />
                    </PagerSettings>
                    <LoadingPanelImage Url="~/App_Themes/DevEx/Web/Loading.gif">
                    </LoadingPanelImage>
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                    <DisabledStyle ForeColor="#B1B1B8">
                    </DisabledStyle>
                </dx:ASPxNewsControl>
            </dx:PanelContent>
        </PanelCollection>
    </dx:ASPxRoundPanel>
    </p>
</asp:Content>